public class Test {

    public static void main(String[] args) {
        int[] array = {5,4,9,15,7,6};

        BinarySearchTree binarySearchTree = new BinarySearchTree();
        for(int x: array) {
            binarySearchTree.insert(x);
        }

        //操作
        //BinarySearchTree.TreeNode search = binarySearchTree.search(12);
        //System.out.println(search.val);

        binarySearchTree.remove(9);

        System.out.println("=========");
    }
}
